<?php if (!defined('THINK_PATH')) exit();?><link type="text/css" rel="stylesheet" href="/assets/css/style.css"/>
<script type="text/javascript" src="/assets/js/jquery.js"></script>
<script type="text/javascript" src="/assets/js/jquery.SuperSlide.js"></script>
<script src="http://a.tbcdn.cn/apps/top/x/sdk.js?appkey=<<?php echo ($appkey); ?>>"></script>
<body>
<div id="header" style="width:950px;margin:0 auto;">
	<!--<div class="wrapper"><a href="#"><img src="/assets/images/logo.png" /></a></div>-->	
</div>
<div id="nav" style="width:950px;margin:0 auto;">
	<div class="wrapper">
		<div class="left">
			<a href="/index.php" class="b red">首页</a><span>-</span>
			<{foreach from=$class item=item}>
			<a href="/index.php?a=categray&classId=<<?php echo ($item["id"]); ?>>" <{if $classId==$item.id }>class="b"<{/if}> > <<?php echo ($item["className"]); ?>></a>
			<{/foreach}>
			
			<!--<a href="#" class="b">团购</a><a href="#" class="b">兑换</a>-->
		</div>
		<div class="right">
			<p><span>您当前拥有<b class="points"><<?php echo ($points); ?>></b>积分</span><a href="#"><<?php echo ($userName); ?>></a></p>
			<a href="#" class="btn">签到</a>
		</div>
		<div class="clearit"></div>
	</div>
</div>
<!--
<div id="subNav">
	<div class="wrapper">
		<ul>
			<li class="itemA"><a href="#">服装</a><a href="#">鞋子</a><a href="#">包包</a><a href="#">配饰</a></li>
			<li class="itemB"><a href="#">家装</a><a href="#">卧室</a><a href="#">厨房</a><a href="#">阳台</a></li>
			<li class="itemC"><a href="#">护肤</a><a href="#">彩妆</a><a href="#">品牌</a><a href="#">功效</a></li>
			<li class="itemD"><a href="#">零食</a><a href="#">特色食品</a><a href="#">茶酒冲饮</a></li>
		</ul>
	</div>
</div>
-->

<div id="index">
	<div class="itemA">
		<div class="left">
		
<div class="banner">
	<div class="bd">
	<div class="tempWrap" style="overflow:hidden;position:relative;width:705px;">
	  <ul class="flow" style="width: 3525px;position: relative;overflow: hidden;padding: 0px;margin: 0px;left: 0px;">
		
		<{foreach from=$slide item=item}>
		<li class="slide" style="float:left;width:705px;">
			<a class="topicBg" href="<<?php echo ($item["picLink"]); ?>>" target="_blank" style="background-image:url(<<?php echo ($item["picUrl"]); ?>>)"></a>
		</li>
		<{/foreach}>
		
	  </ul>
	</div>
	</div>
	<div class="hd">
	  <ul>
		
		<{foreach from=$smallSlide item=item}>
		<li class="slide_li">
			<img src="<<?php echo ($item["picUrl"]); ?>>" />
		 	<p><<?php echo ($item["title"]); ?>></p>
		</li>
		<{/foreach}>
	  </ul>
	</div>
</div>
<script type="text/javascript">jQuery(".banner").slide({ mainCell:".bd ul",effect:"left",autoPlay:true });</script>
<script>
$(document).ready(function(e) {
	var now = new Date();
	var mSec = now.getTime();
    $(".ju-like").click(function(){
		var url = "http://t.taobao.com/cooperate/publish_favor.do?_input_charset=utf-8&"+
		"t="+mSec+
		"&favor_type=3"+
		"&favor_target_key=20307500089"+
		"&favor_sub_type="+
		"&favor_app_id=undefined"+
		"&comment=%E8%BF%99%E4%B8%AA%E5%AE%9D%E8%B4%9D%E6%88%91%E8%9B%AE%E5%96%9C%E6%AC%A2%E7%9A%84%E5%93%A6!~~%E5%A4%A7%E5%AE%B6%E6%9D%A5%E5%9B%B4%E8%A7%82%E4%B8%8B%EF%BC%81~"+
		"&pic=http%3A%2F%2Fimg02.taobaocdn.com%2Fbao%2Fuploaded%2Fi2%2FT1fEAdXkVaXXb6UuIZ_031846.jpg_310x310.jpg"+
		"&client_id=170429"+
		"&type=webpage"+
		"&title=%E7%94%B7%E5%A3%AB%E5%8A%A0%E5%8E%9A%E5%8A%A0%E7%BB%92%E7%89%9B%E4%BB%94%E8%A3%A4%E7%94%B7%E4%BF%AE%E8%BA%AB%E9%BB%91%E8%89%B2%E9%9F%A9%E7%89%88%E6%BD%AE%E4%BC%91%E9%97%B2%E9%93%85%E7%AC%94%E8%A3%A4%E5%B0%8F%E8%84%9A%E8%A3%A4%E5%AD%90"+
		"&key=http%3A%2F%2Fju.uz.taobao.com%2Findex.php%3Fa%3Dproduct%26id%3D10"+
		"&_tb_token_=e9bbe5e1be6a7";
		$.ajax({
			dataType:"jsonp",
			url:url,
			jsonpCallback:"likeBack",
			success: function(data){
				//alert(data.result.);
			},
			error: function(){
				alert("error");
			}
			
		});
	});
});

function likeBack(data){
	if(data.result.code==-1){
		alert("需要登陆呵呵!");
	}
}
</script>
		</div>
		<div class="right">
			<a href="#"><img src="http://img04.taobaocdn.com/imgextra/i4/866221489/T2QqFfXfNOXXXXXXXX_!!866221489.png" /></a>
		</div>
		<div class="clearit"></div>
	</div>
	<!--
	<div class="itemB">
		<h2>聚团购</h2>
		<ul>
			<li><a href="#"><img src="/assets/images/p2.jpg" /></a><span class="title"><a href="#">学院风粉果包包</a></span><span class="num">已有600人购买</span></li>
			<li><a href="#"><img src="/assets/images/p2.jpg" /></a><span class="title"><a href="#">学院风粉果包包</a></span><span class="num">已有600人购买</span></li>
			<li><a href="#"><img src="/assets/images/p2.jpg" /></a><span class="title"><a href="#">学院风粉果包包</a></span><span class="num">已有600人购买</span></li>
			<li><a href="#"><img src="/assets/images/p2.jpg" /></a><span class="title"><a href="#">学院风粉果包包</a></span><span class="num">已有600人购买</span></li>
			<li><a href="#"><img src="/assets/images/p2.jpg" /></a><span class="title"><a href="#">学院风粉果包包</a></span><span class="num">已有600人购买</span></li>
		</ul>
		<a href="#" class="more">更多>></a>
	</div>
	
	<div class="itemC">
		<h2>类目推荐</h2>
		<div class="partA">
			<a href="#" class="a1">女装</a>
			<a href="#" class="a2">母婴</a>
			<a href="#" class="a3">饰品</a>
			<a href="#" class="a4">美妆</a>
			<a href="#" class="a5">家居</a>
			<a href="#" class="a6">男装</a>
		</div>
		<div class="partB">
			<a href="#" class="a7">食品</a>
			<a href="#" class="a8">鞋类</a>
			<a href="#" class="a9">电器</a>
			<a href="#" class="a10">电器</a>
			<a href="#" class="a11">电器</a>
			<a href="#" class="a12">电器</a>
		</div>
		<div class="partC">
			<a href="#" class="a13">包包</a>
		</div>
		<a href="#" class="more">更多>></a>
	</div>
	-->
	<div class="itemD">
		<div class="title"><img src="/assets/images/t1.gif" /><p></p></div>
		<div class="left">
			<a href="/index.php?a=product&id=<<?php echo ($big_item1["id"]); ?>>" target="_blank"><img src="<<?php echo ($big_item1["pic_url"]); ?>>" /></a>
			<strong><a href="/index.php?a=product&id=<<?php echo ($item["id"]); ?>>" ><<?php echo ($big_item1["title"]); ?>></a></strong>
			<br/>
			<p><<?php echo ($big_item1["desc"]); ?>></p>
		</div>
		<div class="right">
			<ul>
			<{foreach from=$items item=item}>
				<li>
					<a href="/index.php?a=product&id=<<?php echo ($item["id"]); ?>>" target="_blank"><img src="<<?php echo ($item["pic_url"]); ?>>" /></a>
					<p class="p1"><a href="/index.php?a=product&id=<?php echo ($item["id"]); ?>>" target="_blank"><<?php echo ($item["title"]); ?>></a></p>
					<div class="ju-like">喜欢</div>
					<p class="p2"><<?php echo ($item["shop"]); ?>></p>
					<p class="p3"><img src="/assets/images/p6.jpg" />糖糖：是我喜欢的感觉诶...</a></p>
				</li>
			<{/foreach}>
			</ul>
		</div>
		<div class="clearit"></div>
	</div>
	<div class="itemD">
		<div class="title"><img src="/assets/images/t2.gif" /><p></p></div>
		<div class="left">
			<a href="/index.php?a=product&id=<?php echo ($big_item2["id"]); ?>>" ><img src="<?php echo ($big_item2["pic_url"]); ?>>" /></a>
			<strong><a href="/index.php?a=product&id=<<?php echo ($item["id"]); ?>>" target="_blank"><<?php echo ($big_item2["title"]); ?>></a></strong>
			<br/>
			<p><<?php echo ($big_item2["desc"]); ?>></p>
		</div>
		<div class="right">
			<ul>
				<{foreach from=$items1 item=item}>
				<li>
					<a href="/index.php?a=product&id=<<?php echo ($item["id"]); ?>>" target="_blank"><img src="<<?php echo ($item["pic_url"]); ?>>" /></a>
					<p class="p1"><a href="/index.php?a=product&id=<<?php echo ($item["id"]); ?>>"><<?php echo ($item["title"]); ?>></a></p>
					<div  data-item_id='<<?php echo ($item["item_id"]); ?>>'  class="sns-widget ju-like" data-like='{
    "text":"喜欢",
    "skinType":1,
    "type":"3",
    "key":"<<?php echo ($item["item_id"]); ?>>",
    "client_id":"170429",
	"shareparams":{
	"pic":"<<?php echo ($item["pic_url"]); ?>>",
	"client_id":"19",
	"comment":"这个宝贝我蛮喜欢的哦!~~大家来围观下！~",
	"type":"webpage",
	"title":"<<?php echo ($item["title"]); ?>>",
	"key":"http://ju.uz.taobao.com/index.php?a=product&id=<<?php echo ($item["id"]); ?>>"}}' type="<<?php echo ($item["item_id"]); ?>>"></div>
	<div class="hidden" ><<?php echo ($item["item_id"]); ?>></div>
					<p class="p2"><<?php echo ($item["shop"]); ?>></p>
					<p class="p3"><img src="/assets/images/p6.jpg" />糖糖：是我喜欢的感觉诶...</p>
				</li>
			<{/foreach}>
			</ul>
		</div>
		<div class="clearit"></div>
	</div>
	<div class="itemD">
		<div class="title"><img src="/assets/images/t3.gif" /><p>  </p></div>
		<div class="left">
			<a href="/index.php?a=product&id=<<?php echo ($big_item3["id"]); ?>>" target="_blank"><img src="<<?php echo ($big_item3["pic_url"]); ?>>" /></a>
			<strong><a href="/index.php?a=product&id=<?php echo ($item["id"]); ?>>" target="_blank"><<?php echo ($big_item3["title"]); ?>></a></strong>
			<br/>
			<p><<?php echo ($big_item3["desc"]); ?>></p>
		</div>
		<div class="right">
			<ul>
				<{foreach from=$items2 item=item}>
				<li>
					<a href="/index.php?a=product&id=<<?php echo ($item["id"]); ?>>" target="_blank"><img src="<<?php echo ($item["pic_url"]); ?>>" /></a>
					<p class="p1"><a href="/index.php?a=product&id=<<?php echo ($item["id"]); ?>>" target="_blank"><<?php echo ($item["title"]); ?>></a></p>
					<div class="sns-widget ju-like" data-like='{
    "text":"喜欢",
    "skinType":1,
    "type":"3",
    "key":"<?php echo ($item["item_id"]); ?>>",
    "client_id":"170429",
	"shareparams":{
	"pic":"<?php echo ($item["pic_url"]); ?>>",
	"client_id":"19",
	"comment":"这个宝贝我蛮喜欢的哦!~~大家来围观下！~",
	"type":"webpage",
	"title":"<?php echo ($item["title"]); ?>",
	"key":"http://ju.uz.taobao.com/index.php?a=product&id=<<?php echo ($item["id"]); ?>>"}}'></div>
	<div class="hidden" ><<?php echo ($item["item_id"]); ?>></div>
					<p class="p2"><<?php echo ($item["shop"]); ?>></p>
					<p class="p3"><img src="/assets/images/p6.jpg" />df糖糖：是我喜欢的感觉诶...</p>
				</li>
			<{/foreach}>
			</ul>
		</div>
		<div class="clearit"></div>
	</div>
	<div class="itemE"><a target="_blank" href="http://uz.taobao.com"><img src="/assets/images/p3.jpg" /></a></div>
</div>